<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="../../compute/static/layui-v2.6.8/layui/css/layui.css">
<script src="../../compute/static/layui-v2.6.8/layui/layui.js"></script>
<body>
<div style="color: #fff; padding: 10px 10px; font-size: 30px">Namespaces</div>
<!--  表名-->
<div style="padding: 0px 20px 0px 20px">
<div class="layui-fluid" style="padding: 0px">

    <div class="layui-row" style="background: #1F4661">
        <div class="layui-col-md3" style="padding: 8px 0px 8px 28px">
            <div class= "layui-font-16" style="color: #fff">
                名称
            </div>
        </div>
        <div class="layui-col-md6" style="padding: 8px 0px 8px 8px">
            <div class= "layui-font-16" style="color: #fff">
                标签
            </div>
        </div>
        <div class="layui-col-md2" style="padding: 8px 0px 8px 8px">
            <div class= "layui-font-16" style="color: #fff">
                状态
            </div>
        </div>
        <div class="layui-col-md1" style="padding: 8px 0px 8px 8px">
            <div class= "layui-font-16" style="color: #fff">
                查看yaml
            </div>
        </div>
    </div>
    <div style="border: 2px solid rgba(1, 227, 243, 0.822)"></div>
    {% for post in posts %}
    <div class="layui-fluid" style="padding: 0px">
        <div class="layui-row" style="background: #1a1a1e">
            <div class="layui-col-md3" style="padding: 8px 0px 8px 28px">
                <div class= "layui-font-16" style="color: #fff">
                    {{ post['name'] }}
                </div>
            </div>
            <div class="layui-col-md6" style="padding: 8px 0px 8px 8px">
                <div class= "layui-font-16" style="color: #fff">
                    {{ post['tag'] }}
                </div>
            </div>
            <div class="layui-col-md2" style="padding: 8px 0px 8px 8px">
                <div class= "layui-font-16" style="color: #fff">
                    {{ post['status'] }}
                </div>
            </div>
            <div class="layui-col-md1" style="padding: 8px 0px 8px 8px">
                <div class= "layui-font-16" style="color: #fff">
                    <a href="{{ url_for('k8s-show.ns_yaml_new', name=post['name']) }}"><i class="layui-icon layui-icon-file" style="font-size: large; color: white;" ></i></a>
                </div>
            </div>
        </div>
        <div style="border: 0.5px solid silver"></div>
    </div>
    {% endfor %}
</div>
</div>
</body>
</html>
